036abc378a674a7a036be1cab9c180cf79f6e767,Android-code/app/src/main/java/com/vasilkoff/easyvpnfree/activity/HomeActivity.java,HomeActivity,initServerOnMap,#,255
Before Change
for (String countryName : countryList) {
for (Country country : countryLatLonList) {
if (countryName.equals(country.getCountryName())) {
mMap.addMarker(new MarkerOptions()
.position(new LatLng(country.getCapitalLatitude(), country.getCapitalLongitude()))
.title(country.getCountryName()));
}
}
}
After Change
if (countryName.equals(country.getCountryName())) {
LatLng position = new LatLng(country.getCapitalLatitude(), country.getCapitalLongitude());
Marker markerServer = mMap.addMarker(new MarkerOptions()
.position(position)
.anchor(0.5f, 0.5f));
markerServer.setTag(countryName);
mMap.addMarker(new MarkerOptions()